<php>
$_index_nav_cate_key = md5('index_nav_cate_key');
$_index_nav_cate = S($_index_nav_cate_key);
if(false === $_index_nav_cate){
    $_index_nav_cate = M('Cate')->order('sort')->select();
    S($_index_nav_cate_key, $_index_nav_cate, 3600);
}
import('Class.Cate',APP_PATH);
$_index_nav_cates = Cate::unlimitedForLayer($_index_nav_cate);
</php>
<!-- menu -->	
            <ul>
                <li>
                    <a href="/" title="首页" class="active">Home</a>
                </li>
    
                <foreach name="_index_nav_cates" item="item">
                    <li><a href="{:U('/l_' . $item['id'])}">{$item.c_name}</a>
                        <notempty name="item.child">
                        <ul> <!-- item submenu --> 
                            <foreach name="item.child" item="value">
                                <li><a href="{:U('/l_' . $value['id'])}">{$value.c_name}</a></li> 
                            </foreach>
                        </ul> <!-- close submenu --> 
                        </notempty>
                    </li>	
                </foreach>	
            </ul>		